package ar.com.personalTravellers.services.impl;

import ar.com.personalTravellers.beans.Neighborhood;
import ar.com.personalTravellers.daos.NeighborhoodDAO;
import ar.com.personalTravellers.services.NeighborhoodService;
import com.angel.arquitectura.service.impl.GenericServiceImpl;

import java.util.Collection;

public class NeighborhoodServiceImpl extends GenericServiceImpl implements NeighborhoodService {

    public Neighborhood findUniqueByName(String neighborhoodName) {
        NeighborhoodDAO neighborhoodDAO = (NeighborhoodDAO) super.getGenericDAO();
        return neighborhoodDAO.findUniqueByName(neighborhoodName);
    }

    public Collection<Neighborhood> findAllByActive(Boolean active) {
        NeighborhoodDAO neighborhoodDAO = (NeighborhoodDAO) super.getGenericDAO();
        return neighborhoodDAO.findAllByActive(active);
    }

    public Collection<Neighborhood> findAllActives() {
        NeighborhoodDAO neighborhoodDAO = (NeighborhoodDAO) super.getGenericDAO();
        return neighborhoodDAO.findAllActives();
    }

    public Collection<Neighborhood> findAllUnactives() {
        NeighborhoodDAO neighborhoodDAO = (NeighborhoodDAO) super.getGenericDAO();
        return neighborhoodDAO.findAllUnactives();
    }
}